// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'styles/iconfont.css'
import fastClick from 'fastclick'
import VueResource from 'vue-resource'
import Vuex from 'vuex'
import VueSession from 'vue-session'
import store from './store/'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import { Navbar, TabItem } from 'mint-ui';
import Mint from 'mint-ui'
import'mint-ui/lib/style.css'
import { Toast } from "mint-ui";
import lrz from 'lrz'  //图片懒加载


Vue.use(Mint);
Vue.prototype.lrz = lrz
Vue.component(Navbar.name, Navbar);
Vue.component(TabItem.name, TabItem);
Vue.use(VueAwesomeSwiper)
fastClick.attach(document.body)
Vue.use(Vuex)
Vue.use(VueSession)
Vue.use(VueResource)
Vue.config.productionTip = false
import APIJS from './assets/js/api.js'
Vue.prototype.api = APIJS
import UtilJS from './assets/js/util.js'
Vue.prototype.util = UtilJS

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
